package com.aishau.smartbj.utils;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by aishua on 2017/7/20.
 */

public class CacheUtils {

    public static final String BJ_SMARE = "bj_smare";

    public static boolean getBoolean(Context context, String key){
        
          SharedPreferences sp =context.getSharedPreferences(BJ_SMARE,Context.MODE_PRIVATE);
       
          return sp.getBoolean(key,false);
      }
    public static void setBoolean(Context context,String key){

        SharedPreferences sp = context.getSharedPreferences(BJ_SMARE,Context.MODE_APPEND);
        sp.edit().putBoolean(key,true).commit();

    }
}
